package com.deepbreath.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 城市映射点entity
 * 
 * @author Administrator
 *
 */
@TableName("city_site")
public class CitySite extends Model<CitySite> {

	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.INPUT)
	private String id;
	private String ctype;// 城市or监测点
	private String province;// 省份
	private String city;// 市区
	private String position;// 检测站点
	private Timestamp time;// 抓取时间

	@Override
	protected Serializable pkVal() {
		return id;
	}

	public CitySite() {
	}

	public CitySite(String id, String ctype, String province, String city, String position, Timestamp time) {
		super();
		this.id = id;
		this.ctype = ctype;
		this.province = province;
		this.city = city;
		this.position = position;
		this.time = time;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCtype() {
		return ctype;
	}

	public void setCtype(String ctype) {
		this.ctype = ctype;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public Timestamp getTime() {
		return time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "CitySite [id=" + id + ", ctype=" + ctype + ", province=" + province + ", city=" + city + ", position="
				+ position + ", time=" + time + "]";
	}

}
